package com.kd.juhaowan.ui.holder;

import android.annotation.SuppressLint;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;


import com.kd.juhaowan.R;
import com.kd.juhaowan.http.model.DateModel;
import com.kd.juhaowan.ui.adapter.BaseViewHolder;

import butterknife.BindView;

public class GameDayViewHolder extends BaseViewHolder {



    @BindView(R.id.cate_select_line)
    View selectView;
    @BindView(R.id.cate_name)
    TextView nameView;





    public GameDayViewHolder(@NonNull View itemView) {
        super(itemView);


    }



    @SuppressLint("ResourceType")
    public void setDate(DateModel model, boolean selected){
        nameView.setText(model.getName());
        if(selected){
            selectView.setVisibility(View.VISIBLE);
            nameView.setTextSize(16);
            nameView.setTextColor(getContext().getColor(R.color.black));
//            nameView.setTypeface(null,Typeface.BOLD);
        }else {
            selectView.setVisibility(View.INVISIBLE);
            nameView.setTextSize(14);
            nameView.setTextColor(getContext().getColor(R.color.login_33));
//            nameView.setTypeface(Typeface.DEFAULT);
        }

    }


}
